import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'


Vue.use(Router)

export default new Router({
  model:"history",
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/register',
      name: 'register',
      component: ()=>import("../views/register/Register.vue")

    },
    {
      path: '/login',
      name: 'login',
      component:  ()=>import("../views/login/Login.vue")
    }
  ]
})
